package com.eva.admin.dao.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eva.admin.biz.cms.article.dto.QueryCmsArticleDTO;
import com.eva.admin.biz.cms.article.dto.QueryCmsArticleProfileDTO;
import com.eva.admin.biz.cms.article.vo.CmsArticleProfileVO;
import com.eva.dao.cms.model.CmsArticle;
import com.eva.admin.biz.cms.article.vo.CmsArticleVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CmsArticleMapper extends BaseMapper<CmsArticle> {

    /**
     * 查询文章管理
     *
     * @param dto QueryCmsArticleDTO
     * @return List<CmsArticleVO>
     */
    List<CmsArticleVO> search(QueryCmsArticleDTO dto);

    /**
     * 为文章下拉选择查询概要信息列表
     *
     * @param dto QueryCmsArticleProfileDTO
     * @return List<CmsArticleProfileVO>
     */
    List<CmsArticleProfileVO> selectProfileList4Select(QueryCmsArticleProfileDTO dto);

}
